using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QLThuHocPhi
{
    public partial class EditInformation : Form
    {
        QLThuHocPhi.Database.DBTool dbt = new QLThuHocPhi.Database.DBTool(); 
        public EditInformation()
        {
            InitializeComponent();
        }

        private void EditInformation_Load(object sender, EventArgs e)
        {
            dbt.loadform(QLThuHocPhi.Database.DBTool.username);
            textBox1.Text = QLThuHocPhi.Database.DBTool.manhanvien;
            textBox3.Text = QLThuHocPhi.Database.DBTool.username;
            textBox4.Text = QLThuHocPhi.Database.DBTool.password;
            comboBox1.Text = QLThuHocPhi.Database.DBTool.quyen;
            textBox5.Text = QLThuHocPhi.Database.DBTool.tennhanvien;
            textBox6.Text = QLThuHocPhi.Database.DBTool.chucvu;
            comboBox2.Text = QLThuHocPhi.Database.DBTool.gioitinh;
            textBox8.Text = QLThuHocPhi.Database.DBTool.quequan;
            textBox9.Text = QLThuHocPhi.Database.DBTool.diachi;
            textBox10.Text = QLThuHocPhi.Database.DBTool.email;
            textBox11.Text = QLThuHocPhi.Database.DBTool.sodienthoai;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            SystemForm sf = new SystemForm(1);
            sf.Show();
            this.SetVisibleCore(false);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //if (MessageBox.Show("Bạn có chắc chắn muốn sửa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            //dbt.UpdateEmploy(textBox1.Text, textBox5.Text, textBox6.Text, comboBox2.Text, textBox8.Text, textBox9.Text, textBox10.Text, textBox11.Text, textBox3.Text, textBox4.Text, comboBox1.Text);
        }

       
    }
}